#include "TcpServer.h"

namespace xkk
{

TcpServer::TcpServer(const string &ip,unsigned short port)
    :_acceptor(ip,port)
     ,_loop(_acceptor)
    {}

void TcpServer::start()
{
    _acceptor.ready();
    _loop.loop();
}

}//end of namespace xkk
